#ifndef THREADINTERFACE_H
#define THREADINTERFACE_H
#include<qdebug.h>
#include <QThread>

class ThreadInterface : public QThread
{
    Q_OBJECT

public:
    struct MyStruct {
        int id;
        QString name;
    };
    //声明纯虚函数
    virtual QVector<MyStruct> createStructArray() = 0;

    virtual void run() = 0; // 声明纯虚函数 run()

    virtual ~ThreadInterface() {}

signals:
     void currentValue_signal(QVector<MyStruct> mystructvec, int n);

};

#endif // THREADINTERFACE_H
